package com.zm.scsimple.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zoum
 * @create 2019/2/25 16:12
 */

@RestController
public class FeignClientController {

    @Autowired
    private FeignClientService feignClientService;

    @RequestMapping("/hello")
    public String hello(@RequestParam String name){
        return feignClientService.hello(name);
    }
}
